/*
 * @Author: MrDotYan 2564217790@qq.com
 * @Date: 2024-09-11 09:00:51
 * @LastEditors: MrDotYan 2564217790@qq.com
 * @LastEditTime: 2024-09-20 16:29:58
 * @FilePath: /webServer/src/job/example.job.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Job, IJob } from '@midwayjs/cron';
import { FORMAT, Inject } from '@midwayjs/core';
import { Context } from '@midwayjs/koa';

@Job({
  cronTime: FORMAT.CRONTAB.EVERY_MINUTE,
  start: false,
  runOnInit: false,
})
export class DataSyncCheckerJob implements IJob {
  @Inject()
  ctx: Context;

  async onTick() {
    this.ctx.logger.info('onTick DataSyncCheckerJob');
  }
}
